<form action='{:url("save")}' method="post" data-auto="true" class="layui-form layui-card" data-table-id="CompanyTable">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item relative block">
            <span class="help-label"><b>公司名称</b></span>
            <input maxlength="255" class="layui-input" name="name" value="{$vo.name|default=''}" required placeholder="请输入公司名称">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>公司位置</b></span>
            <input maxlength="255" class="layui-input" name="location" value="{$vo.location|default=''}" required placeholder="请输入公司位置">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>公司人数</b></span>
            <input type="number" min="0" class="layui-input" name="employee_count" value="{$vo.employee_count|default=''}" placeholder="请输入公司人数">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>每月免费时长</b></span>
            <input type="number" min="0" class="layui-input" name="free_parking_hours" value="{$vo.free_parking_hours|default=''}" required placeholder="请输入每月免费时长">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>可绑定员工车辆数</b></span>
            <input type="number" min="0" class="layui-input" name="max_employee_cars" value="{$vo.max_employee_cars|default=''}" required placeholder="请输入可绑定员工车辆数">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>公司状态</b></span>
            <input type="radio" name="status" value="1" title="正常" {if condition="!isset($vo) || $vo.status == 1"}checked{/if}>
            <input type="radio" name="status" value="0" title="停用" {if condition="isset($vo) && $vo.status == 0"}checked{/if}>
        </label>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
